import request from '@/utils/request';

export function DelCourse(data) {
  return request({
    url: '/api/Online/DelCourse',
    method: 'post',
    data
  });
}

export function AddViewCounts(data) {
  return request({
    url: '/api/Online/AddViewCounts',
    method: 'post',
    data
  });
}
export function AddOrEditCourse(data) {
  return request({
    url: '/api/Online/AddOrEditCourse',
    method: 'post',
    data
  });
}

export function GetCourseList_Page(data) {
  return request({
    url: '/api/Online/GetCourseList_Page',
    method: 'post',
    data
  });
}

export function GetCourseDetail(data) {
  return request({
    url: '/api/Online/GetCourseDetail',
    method: 'post',
    data
  });
}
